<template>
  <div class="placeholder-view">
    <el-card shadow="hover" class="empty-card">
      <div class="empty-content">
        <el-empty description="此功能正在开发中"></el-empty>
        <el-button type="primary" @click="navigateToHome">返回首页</el-button>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const navigateToHome = () => {
  router.push('/home')
}
</script>

<style scoped>
.placeholder-view {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.empty-card {
  width: 100%;
  max-width: 600px;
}

.empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
</style>